package grape.base.rest.message.mapper;

import grape.base.service.message.po.MessageTemplate;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.base.rest.message.form.MessageTemplateCreateForm;
import grape.base.rest.message.form.MessageTemplateUpdateForm;
import grape.base.rest.message.form.MessageTemplateListPageForm;
import grape.base.rest.message.vo.MessageTemplateVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 消息内容模板表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface MessageTemplateWebMapper extends WebMapper<MessageTemplateVo, MessageTemplate> {

    MessageTemplate formToPo(MessageTemplateCreateForm f);
    MessageTemplate formToPo(MessageTemplateUpdateForm f);
    MessageTemplate formToPo(MessageTemplateListPageForm f);
}
